package adv8;

import java.lang.reflect.Array;
import java.util.Arrays;

public class ArryTest {

	public static void main(String[] args) {
		Object o = Array.newInstance(double.class, 20);
		// double d[]=new double[20];
		Array.setDouble(o, 0, 43.25);
		Array.setDouble(o, 1, 13.9);
		Array.setDouble(o, 5, 1233.9);
		double[] d = (double[]) o;
		System.out.println(Arrays.toString(d));
	}

}
